let proxyObj = {}
proxyObj['/api'] = {
  //websocket
  ws: false,
  //目标地址
  target: 'http://localhost:9527',
  //发送请求头中host会设置成target
  changeOrigin: true,   //不重写请求地址
  pathRewrite: {
    '^/api': ''
  }
}
proxyObj['/StaticSource'] = {
  //websocket
  ws: false,
  //目标地址
  target: 'http://localhost',
  //发送请求头中host会设置成target
  changeOrigin: true,   //不重写请求地址
}
module.exports = {
  // assetsDir: 'static',
  // parallel: false,
  // publicPath: './',
  devServer: {
    host: 'localhost',
    port: 8081,
    proxy: proxyObj
  }
}